/**
 * 
 */
package com.xjy.common.util;

/**
 * 实体基类
 *
 */
public abstract class BaseEntity {

	private long id;
	private int sysVersion;
	
	// 系统字段，标示该记录实体是否可用
	private boolean enabled; // 是否可用
	
	public long getId() {
		return id;
	}
	private void setId(long id) {
		this.id = id;
	}
	public int getSysVersion() {
		return sysVersion;
	}
	private void setSysVersion(int sysVersion) {
		this.sysVersion = sysVersion;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	
	
	protected BaseEntity() {}
	
	protected BaseEntity(long id, int sysVersion) {
		this.setId(id);
		this.setSysVersion(sysVersion);
	}
}
